﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using VoteMS.BLL;

/**
 * @author zhu95
 * 
 */
namespace VoteMS.UI
{
    /// <summary>
    /// DeleteProject 的摘要说明
    /// </summary>
    public class DeleteProject : IHttpHandler
    {
        private  readonly ProjectsBLL projectsBll = new ProjectsBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string pid = context.Request.Form["pid"];
            string message= projectsBll.DeleteProjectById(int.Parse(pid));
            context.Response.Write(message);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}